package com.llt.lg;


import com.llt.bottomnavigationf.entity.BottomNavItem;
import com.llt.lg.fractionPage.MoneyList;
import com.llt.lg.fractionPage.MyCenter;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.ability.fraction.Fraction;
import ohos.aafwk.ability.fraction.FractionAbility;

import java.util.ArrayList;
import java.util.List;

public class BottomNavViewModel {

    List<Fraction> fractions = new ArrayList<>();
    List<BottomNavItem> bottomNavItems = new ArrayList<>();
    public List<Fraction> initBottomNavFractionsBody(AbilitySlice abilitySlice){
        MoneyList moneyList = new MoneyList(abilitySlice);
        MyCenter myCenter = new MyCenter(abilitySlice);
        fractions.add(moneyList);
        fractions.add(myCenter);
        return fractions;
    }

    public List<BottomNavItem> initBottomNavFractions(){
        BottomNavItem bottomNavItem = new BottomNavItem();
        BottomNavItem bottomNavItem1 = new BottomNavItem();
        bottomNavItem.setImg(ResourceTable.Media_tab_no_select_floor);
        bottomNavItem.setSelectImg(ResourceTable.Media_tab_select_floor);
        bottomNavItem.setUnselectColor("#7B7B7B");
        bottomNavItem.setSelectColor("#1DBBFF");
        bottomNavItem.setTitle("任务阁");
        bottomNavItem1.setImg(ResourceTable.Media_tab_no_select_qiandaizi);
        bottomNavItem1.setSelectImg(ResourceTable.Media_tab_select_qiandaizi);
        bottomNavItem1.setUnselectColor("#7B7B7B");
        bottomNavItem1.setSelectColor("#1DBBFF");
        bottomNavItem1.setTitle("收纳袋");
        bottomNavItems.add(bottomNavItem);
        bottomNavItems.add(bottomNavItem1);
        return bottomNavItems;
    }
}
